package com.ad.pet.message.record;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.ad.pet.DaggerMainActivityCompent;
import com.ad.pet.R;
import com.ad.pet.common.structure.mvp.BasePresenter;
import com.ad.pet.common.structure.ui.activity.AppToolbarActivity;
import com.ad.pet.constant.Constant;
import com.ad.pet.models.remote.message.Record;

import butterknife.BindView;

/**
 * Created by SEELE on 2019/7/3.
 */

public class BuinessRecordDetailActivity extends AppToolbarActivity {

    @BindView(R.id.tv_title)
    TextView mTvTitle;
    @BindView(R.id.tv_price)
    TextView mTvPrice;
    @BindView(R.id.tv_ordersn)
    TextView mTvOrdersn;
    @BindView(R.id.tv_way)
    TextView mTvWay;
    @BindView(R.id.tv_time)
    TextView mTvTime;
    @BindView(R.id.tv_tips)
    TextView mTvTips;
    private Record mRecord;

    @Override
    protected void init(Bundle savedInstanceState) {
        super.init(savedInstanceState);
        mStatusLayoutManager.showContent();
    }

    @Override
    protected int contentLayout() {
        return R.layout.activity_buiness_record_detail;
    }

    @Override
    protected void clickRetry(View v) {

    }

    @Override
    protected void initViews() {
        mRecord = (Record) getIntent().getSerializableExtra(Constant.NAME);

        mTvTitle.setText(mRecord.getTitle());
        mTvOrdersn.setText(mRecord.getOrder_sn());
        mTvPrice.setText(mRecord.getAmount());
        mTvTips.setText(mRecord.getNote());
        mTvWay.setText(mRecord.getPm_id());
        mTvTime.setText(mRecord.getAddtime());

    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initEvents() {

    }

    @Override
    public void initInject() {
        DaggerMainActivityCompent.builder().applicationComponent(getApplicationComponent()).activityModule(getActivityModule()).build().inject(this);
    }

    @Override
    protected BasePresenter getPresenter() {
        return null;
    }


}
